#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>
int main()
{
    pid_t id =fork();
    if(id>0)
    {
        printf("father proc,pid:%d,ppid:%d\n",getpid(),getppid());
    }
    if(id==0)
    {
        printf("child proc,pid:%d,ppid:%d\n",getpid(),getppid());

    }
    return 0;
}
